Skip to content

Trim slow test fixtures and synchronize DuckDB spatial installs - #12323

Open
lwwmanning wants to merge 2 commits into
developfrom
wm/trim-fsst-bomb-and-spatial-lock
Open

lwwmanning wants to merge 2 commits into
developfrom
wm/trim-fsst-bomb-and-spatial-lock

Conversation

@lwwmanning

@lwwmanning lwwmanning commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Removes the 3.2 GiB debug-mode fsst_compress_offsets_overflow_i32 test (already covered in <1ms by fsst_compress_offset_width_rollover) along with its now-unused test-with dev-dependency, shrinks oversized validity and child-policy fixtures in vortex-btrblocks while gating a zstd-only test import, and switches vortex-uuid property tests to gs::binary() with a shared session. Synchronizes DuckDB spatial extension installation across threads and nextest processes via a pure-Rust file lock, guards global SCAN_V2 mutation with a mutex drop guard, and removes the serial duckdb-extension-install nextest group.

Assisted by Antigravity.

…alls

Signed-off-by: Will Manning <will@willmanning.io>
@lwwmanning lwwmanning added the changelog/skip Do not list PR in the changelog label Nov 29, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-29T18:41:38.491041Z b9814e4 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@vortex-roborev-bot

vortex-roborev-bot Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

roborev: Combined Review (c014237)

Verdict: No issues found.


Reviewers: claude-code | Synthesis: claude-code, 0s | Total: 36s, cost partial ~$0.22

vortex-roborev-bot[bot]

This comment was marked as resolved.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

@codspeed

codspeed Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Merging this PR will improve performance by 13%

Warning

vortex-data has exceeded the Hobby plan limit of 5 active contributors. Upgrade your plan or apply to the open source program by December 8, 2026 to keep using CodSpeed.

1 warning

⚠️ Walltime results may be unreliable

Some benchmarks used the Walltime instrument outside CodSpeed Macro Runners, which can make the results inconsistent.

Learn more about Macro Runners

See affected benchmarks

⚡ 1 improved benchmark
✅ 2176 untouched benchmarks
⏩ 164 skipped benchmarks1

Performance Changes

Mode Benchmark BASE HEAD Efficiency
⚡ Walltime dict_canonicalize_gt_u8_neon[1000000] 29 µs 25.6 µs +13%

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing wm/trim-fsst-bomb-and-spatial-lock (c014237) with develop (4525dfa)

Open in CodSpeed

Footnotes

  1. 164 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@lwwmanning lwwmanning left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Posted by Claude Opus 5.5 on Will's behalf.

The fixture trims look right. The deleted vortex-fsst test is still covered: fsst_compress only passes i32::MAX to fsst_compress_with_offset_threshold, and fsst_compress_offset_width_rollover exercises both offset widths. The btrblocks assertions still bite at 4,096 rows, because a raw 4,096-bit validity bitmap is 512 bytes and the tests require less than 100. Two points:

  • .config/nextest.toml lines 4 and 5: I agree with the bot comments. CI passes --cargo-profile ci, which picks the Cargo build profile, and nothing selects the nextest ci profile. The new timeout never applies. I would delete the [profile.ci] block. If you want it, add --profile ci to the CI nextest calls. First check that no CI test runs longer than 30 seconds in a ci build, because the profile would kill it.
  • vortex-duckdb/src/e2e_test/mod.rs lines 8 to 85: the loader can be about half its size. File::lock uses flock on Unix and LockFileEx on Windows. Both conflict between two handles in the same process, so the file lock already serializes threads and INSTALL_LOCK (line 21) adds nothing. DuckDB already nests installed extensions under <extension_directory>/<version>/<platform>/, so duckdb_version_dir_name (lines 23 to 36) and its unsafe block are not needed. The marker file (lines 63, 64, 76 and 81) only matters when a successful LOAD follows it, so "try LOAD, lock, try LOAD again, then INSTALL" does the same job without it. As far as I know, DuckDB writes the extension to a temporary file and renames it, so a reader cannot load a half-written file.

Signed-off-by: Will Manning <will@spiraldb.com>
Co-Authored-By: Will Manning <will@spiraldb.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor

Addressed both points in c014237c7: removed the unused [profile.ci] block in .config/nextest.toml, and simplified load_spatial in vortex-duckdb/src/e2e_test/mod.rs by dropping INSTALL_LOCK, duckdb_version_dir_name, and the .spatial-installed marker file in favor of double-checked LOAD spatial around File::lock().

@devin-ai-integration devin-ai-integration Bot added the quick-review Small, self-contained change that is quick to review label Nov 29, 2026

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 3 potential issues.

Devin Review

Comment thread encodings/fsst/src/tests.rs Resolved
Comment thread vortex-duckdb/src/e2e_test/mod.rs Resolved

@lwwmanning lwwmanning left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Posted by Claude Opus 5.5 on Will's behalf.

Commit c014237 resolves both points from my earlier review. The unused nextest ci profile is gone. The spatial loader now relies on the file lock and a repeated LOAD, without the mutex, the version directory or the marker file.

@lwwmanning
lwwmanning enabled auto-merge (squash) November 29, 2026 21:48

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/skip Do not list PR in the changelog quick-review Small, self-contained change that is quick to review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant